package com.spring.dataTransaction;

import static org.junit.Assert.*;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/*
 * 测试转账环境
 */

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:tx.xml")
public class txTest01 {
	
	@Resource(name="accountService")
	private AccountService accountService;

	@Test
	public void test() {
		accountService.transfer("心灵石", "争渡", 33d);
	}

}
